﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Inspired.Euler
{
    public static class Problem029
    {
        public static long Solve()
        {
            return
            Enumerable.Range(2, 99).SelectMany(i =>
            Enumerable.Range(2, 99), (a, b) => Math.Pow(a, b))
                .Distinct()
                .Count();
        }
    }
}
